<%@page import="com.mxbbx.wdn.domain.menu.Menu"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/base.jsp"%>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<base href="<%=basePath%>">

<title>用户列表</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<link rel="stylesheet" href="css/styles.css">
<link rel="stylesheet" href="css/admin.css">
<script src="js/jquery-1.4.4.min.js"></script>
<script src="js/admin.js"></script>
</head>

<body>
	<div class="panel admin-panel">
		<div class="panel-head">
			<strong class="icon-reorder"> 用户信息列表</strong>
		</div>
		<div class="padding border-bottom">
			<form id="form-add" method="post" class="form-x">
				<ul class="search" style="padding-left:10px;">
					<li><a class="button border-main"
						onclick="JavaScript:history.go(-1)"> 返回</a></li>
				</ul>
		</div>
		<table class="table table-hover text-center">
			<tr>
				<th>用户编号</th>
				<th>姓名</th>
				<th>状态</th>
				<th>所在部门</th>
			</tr>

			<%
					String userId = request.getParameter("userId");
					String pageNo = request.getParameter("pageNo");
					int p = pageNo == null ? 1 : Integer.parseInt(pageNo);
					UserDao userDao = new UserDao();
					String sql = "select * from user where userId='"+userId+"'";
					Object[] params = {};
					Page pageBean = userDao.queryOjectsByPage(sql, params, p,
							Constant.ROW);
				%>
			<%
					for (int i = 0; i < pageBean.getDatas().size(); i++) {

						User model = (User) pageBean.getDatas().get(i);
				%>

			<tr>
				<td><%=model.getUserId()%></td>
				<td><%=model.getFullName()%></td>
				<td><%=model.getStatus()%></td>
				<td><%=model.getAgencode()%></td>

			</tr>
			<%
				}
			%>

		</table>
		</form>
	</div>
</body>
</html>
